#! /usr/bin/python
# -*- coding: UTF-8 -*-

__author__          = "anorgan"
__date__            = "$Jul 31, 2009 5:33:15 PM$"
__app_name__        = "MyTwitter"

__ABOUT__           = """Super aplikacija za twitter"""
__HELP__            = """Koristi"""

# Application paths
__CONFIG_DIR__      = os.path.expanduser('~/.') + __app_name__ + os.sep
__config_file__     = __CONFIG_DIR__ + '.' + __app_name__ + '.cfg'

__GUI_DIR__         = __BASE_DIR__ + 'GUI' + os.sep
__ASSETS_DIR__      = __BASE_DIR__ + 'assets' + os.sep

# Icons
png_icon            = __BASE_DIR__ + 'tweet.png'
refresh_png_icon    = __GUI_DIR__ + 'refresh.png'
reply_png_icon      = __GUI_DIR__ + 'reply.png'

__refresh_rate__     = 120

# Twitter variables
__twitter_url__      = 'http://twitter.com/'
__twitter_agent__    = '<a href="http://code.google.com/p/wx-mytwitter/">' + __app_name__ + '</a>'


# Include files
if os.path.isfile(__BASE_DIR__ + 'events.py'):
    execfile(__BASE_DIR__ + 'events.py')

if os.path.isfile(__BASE_DIR__ + 'menu.py'):
    execfile(__BASE_DIR__ + 'menu.py')

if os.path.isfile(__BASE_DIR__ + 'frames.py'):
    execfile(__BASE_DIR__ + 'frames.py')

# Menu array
menu_array = [
    ('&File', [
        ('ID_REFRESH', '&Refresh', 'OnRefreshClick', 'Refresh screen'),
        ('ID_EXIT', '&Exit', 'OnExitClick', 'Quit this uber-cool aplication')
    ]),
    ('&Options', [
        ('ID_PROPERTIES', '&Options', 'OnOptionsClick', 'Set username and password'),
        ('ID_REMOVE', '&Disconnect', 'OnDisconnectClick', 'Disconnect from twitter')
    ]),
    ('&Help', [
        ('ID_HELP','&Help', 'OnHelpClick'),
        ('ID_ABOUT', '&About', 'OnAboutClick', 'About this'),
    ])
]

